<template>
  <el-card>
    <el-menu
        v-model="title"
        class="el-menu-demo"
        mode="horizontal"
        default-active='0'
        active-text-color="#f83683"
        @select="handleSelect">
      <el-menu-item v-for="(item,index) in title" :index="index">{{ item }}</el-menu-item>
    </el-menu>
  </el-card>
  <el-card style="margin-top: 15px;height: 100vh">
    <el-input v-model="searchStr" style="width: 270px">
      <template #prefix>
        <el-icon>
          <Search/>
        </el-icon>
      </template>
    </el-input>
    <el-button style="margin-left: 15px">搜索</el-button>
    <el-row style="margin-top:15px">
      <el-table style="width: 100%">
        <el-table-column width="440px" align="center" label="订单信息"></el-table-column>
        <el-table-column width="80ox" align="center" label="购买数量"></el-table-column>
        <el-table-column width="120ox" align="center" label="单价"></el-table-column>
        <el-table-column width="120ox" align="center" label="实付"></el-table-column>
        <el-table-column width="80ox" align="center" label="状态"></el-table-column>
        <el-table-column width="120ox" align="center" label="操作"></el-table-column>
      </el-table>
    </el-row>
  </el-card>


</template>

<script setup lang="ts">

import {ref} from "vue";
import {Search} from "@element-plus/icons-vue";

const searchStr = ref('')
const handleSelect = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const title = ref(['全部订单', '待付款', '待评价', '待服务/发货', '待确认', '退款/售后'])
</script>

<style lang="less" scoped>
.searchContainer {
  width: 270px;
}
</style>

